import React from 'react'
import RouterView from './router/RouterView';
import routes from './router/config';
import {HashRouter as Router} from 'react-router-dom'
import store from './store/index'
import StoreContext from './context/StoreContext'
import useStore from './context/useStore'
import {useObserver} from 'mobx-react-lite'
const App: React.FC = ()=>{
  // let {global}=useStore()
  return useObserver(()=><Router>
    <RouterView routes={routes}/>
    </Router>)
  
}

export default App;